<!DOCTYPE html>
<html>

<head>
    <meta charset="UTF-8">
    <title></title>
    <script type="text/javascript" src="js/jquery-3.3.1.js" ></script>
    <script type="text/javascript">
        $(document).ready(function() {
            $("#ajaxTest").click(function(){
                $(document).ready(function() {
                    $("#ajaxTest").click(function(){
                        $.ajax({
                            type: "GET",
                            url: "localhost:6688/recruit/getRecruitList",
                            contentType: "application/json;charset=utf-8",
                            datatype: 'json',

                            error: function(data) {
                                alert("请求失败");
                            },
                            success: function(res) {
                                alert("请求失败");
                            }
                        });
                    });

                });
            });

        });
    </script>
</head>

<body>
<input type="button" name="" id="ajaxTest" value="发起请求" onclick="" />
</body>

</html>